{% extends "./default.html" %}
{% block content %}
{% import "./public/adsPannel.html" as adsPannel %}
<script src="{{staticThemePath}}/js/up/js.js"></script>
{% assets 'lrtk.js myfocus-2.0.4.min.js view.css' %}
{% endassets %}

<article>
    <div class="l_box f_l">
        <div class="topnews">
            <h2>您现在的位置是：<a href="/">首页</a>><a href="{{(post.categories[post.categories.length-1]).url}}">{{(post.categories[post.categories.length-1]).name}}</a>> 查看内容</h2>
            <div class="news_title">{{post.title}}</div>
            <div class="news_author"><span class="au01">{{post.uAuthor.userName}}</span><span class="au02">{{post.date}}</span><span class="au03">共<b>{{post.clickNum}}</b>人围观</span><strong class="au04 f_r">暂无评论</strong></div>
            <div class="tags">
                {% for tag in post.tags %}
                <a href="/" target="_blank">{{tag.name}}</a>&nbsp;
                {% endfor %}
            </div>

            <div class="news_about"><strong>简介</strong> :{{post.discription}}</div>
            <div class="news_content">
                {{post.comments | safe}}
            </div>

            <div class="nextinfo">
                {% near_post "id"=post._id %}
                {% if near_post %}
                {% if near_post.preContent.title %}
                <p>上一篇：<a href="{{near_post.preContent.url}}">{{near_post.preContent.title}}</a></p>
                {% endif %}
                {% if near_post.nextContent.title %}
                <p>下一篇：<a href="{{near_post.nextContent.url}}">{{near_post.nextContent.title}}</a></p>
                {% endif %}
                {% endif %}
            </div>
            {% include "./public/randomList.html" %}
            <div class="news_pl">
                <h2>文章评论</h2>
                <ul>
                    {% if HOOK@messageBoard %}
                    {{HOOK@messageBoard | safe}}
                    {% endif %}
                </ul>
            </div>
        </div>
    </div>
    <div class="r_box f_r">
        {% include './public/sidebar.html' %}
    </div>
    <!--r_box end -->
</article>
{% endblock %}